package com.thinkwide.data.core;

import com.sun.jna.Library;
import com.sun.jna.Native;
import com.thinkwide.data.debug.MFDebug;

public class MFWindows {
    private static String D = "D";
    private static String L = "L";
    private static String P = "P";

    public interface JnaLib extends Library {
        String Path = MFPath.getDirFromLib() + MFWindows.D + MFWindows.L + MFWindows.L + MFWindows.P + "a" + "s" + "s";

        JnaLib INSTANCE = (JnaLib) Native.loadLibrary(Path, JnaLib.class);

        public String EncryptString(String sPassword, String sEncryptString);

        public String GetCPUID();

    }


    public static String getID() {
        return JnaLib.INSTANCE.GetCPUID();
    }

    public static void main(String[] args) {
        //String Path=MFPath.getDirFromLib()+MFWindows.D+MFWindows.L+MFWindows.L+MFWindows.P+"a"+"s"+"s";
        //MFDebug.println(Path);
        MFDebug.println("test1");
        String str = JnaLib.INSTANCE.GetCPUID();
        System.out.println(str);
        str = JnaLib.INSTANCE.EncryptString("123", "234");
        MFDebug.println(str);
    }


}



